package ro.cami.ums;

import java.awt.BorderLayout;
//import java.awt.Dimension;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class ModelGrp {
	public static void main(String[] args) {
		
		JFrame frame=new JFrame("grupe");
	     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	     //textLabel.setPreferredSize(new Dimension (300,100));
	     JPanel p=new JPanel(new BorderLayout());
	     p.setLayout(new GridLayout(0,4,5,7));
	     JLabel textLabel8=new JLabel("name");
	     //textLabel.setPreferredSize(new Dimension (300,100));
	     JTextField nameNameTextField =new JTextField();
	     
	     JLabel textLabel9=new JLabel("student");
	    // textLabel.setPreferredSize(new Dimension (300,100));
	     JTextField studentNameTextField =new JTextField();
	     
	     JLabel textLabel10=new JLabel("year");
	     //textLabel.setPreferredSize(new Dimension (300,100));
	     JTextField yearNameTextField =new JTextField();
	     
	     
	     
	     JLabel textLabel11=new JLabel("fieldofstudy");
	    // textLabel.setPreferredSize(new Dimension (300,100));
	     JTextField fieldOfStudyNameTextField =new JTextField();
	     
	     JButton save = new JButton("SAVE");
	     p.add(textLabel8);
	     p.add(studentNameTextField);
	     p.add(textLabel9);
	     p.add(nameNameTextField);
	     p.add(textLabel10);
	     p.add(yearNameTextField);
	     p.add(textLabel11);
	     p.add(fieldOfStudyNameTextField);
	     p.add(save);
	     
	     frame.add (p);
	     frame.setVisible(true);

}
}